|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Macros | |
| #define | BAUD_RATE 9600 |
| #define | RECEIVE_DATA_COUNT 0x03 |
| #define | USCI_A_UART_MULTIPROCESSOR_MODE_ADDRESS 0xAA |
Functions | |
| void | main (void) |
| void | USCI_A0_ISR (void) |
Variables | |
| uint8_t | receivedData = 0x00 |
| uint8_t | receiveDataCount = RECEIVE_DATA_COUNT |
| #define BAUD_RATE 9600 |
This example shows how to configure the UART module to echo a received character in auto baudrate detection mode. To echo a received character, RX ISR is used.
MSP430F5438A
-----------------
/|\| |
| | |
--|RST |
| |
| P3.4/UCA0TXD|------------>
| | 9600
| P3.5/UCA0RXD|<------------
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 63 of file usci_a_uart_ex3_autoBaudrateDetectionRX.c.
| #define RECEIVE_DATA_COUNT 0x03 |
Definition at line 64 of file usci_a_uart_ex3_autoBaudrateDetectionRX.c.
| #define USCI_A_UART_MULTIPROCESSOR_MODE_ADDRESS 0xAA |
Definition at line 65 of file usci_a_uart_ex3_autoBaudrateDetectionRX.c.
| void main | ( | void | ) |
Definition at line 69 of file usci_a_uart_ex3_autoBaudrateDetectionRX.c.
References __no_operation(), param, and STATUS_FAIL.
| void USCI_A0_ISR | ( | void | ) |
Definition at line 125 of file usci_a_uart_ex3_autoBaudrateDetectionRX.c.
References RECEIVE_DATA_COUNT, receiveDataCount, and receivedData.
| uint8_t receiveDataCount = RECEIVE_DATA_COUNT |
Definition at line 67 of file usci_a_uart_ex3_autoBaudrateDetectionRX.c.
Referenced by USCI_A0_ISR().
| uint8_t receivedData = 0x00 |
Definition at line 67 of file usci_a_uart_ex3_autoBaudrateDetectionRX.c.
Referenced by USCI_A0_ISR().